package com.shihan.client;

import com.shihan.service.UserService;

/**
 * @Description
 * @Author shihan
 * @Date 2020/8/9 16:46
 * @Version 1.0
 */
public class ClientBootStrap {

    public static void main(String[] args) throws InterruptedException {

        RpcConsumer rpcConsumer = new RpcConsumer();
        UserService proxy = (UserService)RpcConsumer.createProxy(UserService.class);

        while (true){
            Thread.sleep(1000);
            String result = proxy.sayHello("msg from client!");
            System.out.println("响应结果："+result);
        }

    }

}
